//
//  UIViewController+RxExtection.swift
//  YKSwiftRxExtection
//
//  Created by edward on 2022/1/10.
//

import UIKit
import RxSwift

extension Reactive where Base: UIViewController {
    
    public func backgroundColor() -> Binder<UIColor?> {
        Binder(self.base) { viewController, color in
            viewController.view.backgroundColor = color
        }
    }
    
    public func title() -> Binder<String?> {
        Binder(self.base) { viewController, title in
            viewController.title = title
        }
    }
}
